/* typehints:start */
const { Npc } = require("../../../npc");
/* typehints:end */

const { randomArrProportion, createID } = require("../../../../../core/utils/utils");

/**
 * 
 * @param {Npc} npc 
 * @returns 
 */
module.exports = function(npc){
  let shops = [];
  let goods = [];

  shops = [
    {
      id: 1,
      key: '材料/凡级/布',
      num: 50,
    },
    {
      key: '材料/凡级/铁块',
      num: 1,
      only: true,
    }
  ];

  goods = randomArrProportion([
    {
      random: 100,
      data: [
        {
          key: '材料/凡级/布',
          num: 3
        }
      ]
    },
    {
      random: 10,
      data: [
        {
          key: '材料/凡级/铁块',
          num: 1,
        }
      ]
    }
  ]).flat(2);

  return {
    shops, goods
  }
}